In the cross-domain sentiment analysis, the labeled samples in the target domain are seriously insufficient, the distributions of features in different domains are very different, and the emotional polarities expressed by features in one domain differ a lot from the emotional polarities in another domain, all of these problems lead to low classification accuracy. To deal with the above problems, an aspect-level cross-domain sentiment analysis method based on capsule network was proposed. Firstly, the feature representations of text were obtained by BERT (Bidirectional Encoder Representation from Transformers) pre-training model. Secondly, for the fine-grained aspect-level sentiment features, Recurrent Neural Network (RNN) was used to fuse the context features and aspect features. Thirdly, capsule network and dynamic routing were used to distinguish overlapping features, and the sentiment classification model was constructed on the basis of capsule network. Finally, a small amount of data in the target domain was used to fine-tune the model to realize cross-domain transfer learning. The optimal F1 score of the proposed method is 95.7% on Chinese dataset and 91.8% on English dataset, which effectively solves the low accuracy problem of insufficient training samples.